package net.kodra.supereasy.traffic.client;

import net.kodra.supereasy.traffic.shared.Schedule;
import net.kodra.supereasy.traffic.shared.TransportationVehicle;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
**/
@RemoteServiceRelativePath("service")
public interface TrafficService extends RemoteService
{

  Long registerClient();

  Schedule[] getCurrentSchedule(String stationName) throws IllegalArgumentException;

  TransportationVehicle[] getUpdate() throws IllegalArgumentException;

}